
#Jared Billingsley

import sys

def printPrime(num):
    for i in range(2, num):
        bIsPrime = 1
        for j in range(2, int(i / 2) + 1):
            if i % j == 0:
                bIsPrime = 0
                break
        if bIsPrime == 1:
            print(str(i))

x = input('Enter your input: ')
printPrime(int(x))
input('Press enter to exit')